package com.zjj.io.buffer;

import java.io.*;

/**
 * @author zhoujunjie
 * @desc TODO
 * @date
 */
public class ReadFileByPath {

    public static void main(String[] args) {
        readFileByPathD();
    }
    public static void readFileByPathD(){
        try (
                BufferedReader br = new BufferedReader(new FileReader("D:\\a\\1.txt"));
        ){
            String str = null;
            while ((str=br.readLine())!=null){
                System.out.println(str);
            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
